package com.sun.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.sun.entity.Goods;
import com.sun.entity.Goodstype;
import com.sun.entity.Storage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author rabbiter
 * @since 2023-01-06
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    IPage pageCC(IPage<Goods> page, @Param(Constants.WRAPPER) Wrapper wrapper);

    List<Goods> getMuban();

    Storage getStorageById(String storage);

    Goodstype getGoodstype(String goodstype);

    void updataForFile(Integer id, Integer count);

    void myUpdateById(Goods goods1);

    Integer getIdBynameAndCell(String name,String cell);

    Goods getGoodByNameAndCell(String name, String cell);
}
